import request from '@/utils/request'

// 数据查询 - getlist
export function queryUserInfoHistoryDateList(query) {
    return request({
        url: '/userInfo/queryUserInfoHistoryDateList',
        method: 'get',
        params: query
    })
}

// 实时数据 - getlist
export function refreshPage(query) {
    return request({
        url: '/wb/refreshPage',
        method: 'get',
        params: query
    })
}


export function jumpNextStepAction(query) {
    return request({
        url: '/wb/jumpNextStepAction',
        method: 'get',
        params: query
    })
}

export function getSetting(query) {
    return request({
        url: '/common/getSetting',
        method: 'get',
        params: query
    })
}

export function updateSetting(data) {
    return request({
        url: '/common/updateSetting',
        method: 'post',
        data: data
    })
}

export function distinctPageUrls(query) {
    return request({
        url: '/userInfo/distinctPageUrls',
        method: 'get',
        params: query
    })
}

export function globalOverview(query) {
    return request({
        url: '/userInfo/globalOverview',
        method: 'get',
        params: query
    })
}

export function sourceCodesList(query) {
    return request({
        url: '/sourceCodes/list',
        method: 'get',
        params: query
    })
}

export function createOrUpdateSourceCode(data) {
    return request({
        url: '/sourceCodes/createOrUpdateSourceCode',
        method: 'post',
        data: data
    })
}

export function getSourceInfoById(query) {
    return request({
        url: '/sourceCode/getSourceInfoById',
        method: 'get',
        params: query
    })
}
export function installCert(query) {
    return request({
        url: '/sourceCode/installCert',
        method: 'get',
        params: query
    })
}



